home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
util
/
conv
/
macwhack.lha
/
macwhack.doc
< prev
Wrap
Text File
|
1997-01-27
|
2KB
|
49 lines
MACWHACK 1.0 (01/01/1997) MacBinary header remover
by Philip Tsao (Tp12a@cc.gatech.edu)
Ever received a Microsoft Excel(TM) or other type of file from a
colleague only to find that you can't open it on your IBM PC compatible?
Did you delete the file in disgust and take out your frustrations on your
colleague, only to find that this whole misunderstanding occured just
because he/she (your colleague) created the file on a Macintosh? If this
sort of thing happens often, this program is just what you need.
I'm not in the business of hating Macs. I actually like them quite
a bit. I think their filesystem is rather neat-- except no one else stores
files the way a Mac does. This buggers up file transfers, among other
things. Sometimes, when a Mac file is copied to a non-Mac disk, a 128 byte
MacBinary header is slapped onto the beginning of the file (actually, the
data fork, but that's another story for another time). This 128 byte header
is what annoys non-Mac computers.
This program (the one you're reading the docs to) gets rid of the
offending 128 byte header. The syntax is something like this:
bozoshell.1> macwhack infile outfile
I leave it to your intuition to conclude that <infile> is the file that
contains the MacBinary header and <outfile> is the one that doesn't.
WARNING:
Use this program at your own risk. I disclaim any responsibility
for what this program does/doesn't do. This program was the result of a
good afternoon's worth of hacking. If you feel uncomfortable about running
software that was thrown together in one afternoon, delete this program
now.
This program is so good at removing 128 byte MacBinary headers that
it'll remove the first 128 bytes from _ANY_ file, whether it be a Macintosh
file or your payroll database. Using this program unwisely can result in
loss of data. Again, I am not responsible for any of it.
This program probably contains bugs. This program is already TOO
SLOW and TOO HUGE. As a result, I've removed all type-checking code. That
means if you screw up the syntax, your computer could explode. If your
computer explodes, I am not responsible. (notice a pattern?)
NOTICE:
Microsoft Excel(TM) is a registered trademark of Microsoft, Corp.
IBM PC is a registered trademark of International Business Machines, Inc.
Macintosh is a registered trademark of Apple Computer, Inc.
The "gatech.edu" domain is probably a trademark of the Georgia Institute of
Technology.